export type propsType = {
	type: 'Dept' | 'Ward' | 'Bed' | 'InPatient'
	addTo: 'Org' | 'Ward'
	list: (params?) => Promise<string>
	tableColumns: IColumsItem[]
}

interface IColumsItem {
	title: string
	dataIndex: string
	key: string
}

export interface syncResultItem {
	id?: string
	clinicAttr?: string
	deptAlias?: string
	deptCode?: string
	deptName?: string
	hospitalCode?: string
	inputCode?: string
	internalOrSergery?: string
	organizationId?: string
	outpOrInp?: string
	remark?: string
	sortCode?: number
	status?: boolean
}

export type hisResultInfo = {
	data: syncResultItem[]
	hisDataCategory: string
}

export type hisResult = {
	data: hisResultInfo
	code: number
	msg: string
}
export type listOptions = {
	immediate?: boolean
}
